package tdd.refactor;

public class TaxiFeeCityAdapter implements Chargeable {
	private TaxiFeeCity taxiFeeCity;
	
	/**
	 * @param taxiFeeCity
	 */
	public TaxiFeeCityAdapter(TaxiFeeCity taxiFeeCity) {
		super();
		this.taxiFeeCity = taxiFeeCity;
	}

	public double chargeByMiles(double miles){
		return this.taxiFeeCity.operate(miles);
	}

}
